package com.cee.service.Impl;

import com.cee.dao.OptionJudgeMapper;
import com.cee.model.OptionJudge;
import com.cee.model.OptionManySelect;
import com.cee.service.OptionJudgeService;
import com.cee.service.OptionManySelectService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Slf4j
@Service
@Transactional
public class OptionJudgeServiceImpl implements OptionJudgeService {

    @Autowired
    private OptionJudgeMapper optionJudgeMapper;

    @Override
    public int addOptionJudge(OptionJudge optionJudge) {
        return optionJudgeMapper.insert(optionJudge);
    }

    @Override
    public List<OptionJudge> getListById(Integer ceeJudgeId) {
        return optionJudgeMapper.getListById(ceeJudgeId);
    }
}
